<template>
  <div>
      Staffdetail - {{id}} -- {{route.params}}
      <!-- {{$routes.params.id}} -->
  </div>
</template>

<script setup>
import { useRouter, useRoute } from 'vue-router'
import { defineProps } from 'vue'
let props = defineProps({
  id: String,
  type: String,
});
const route = useRoute()
const router = useRouter()
var {id} = route.params;
import { reactive} from 'vue'
const state = reactive({
  count: 0,
})
let btnclick = () => {
  state.count++
}
</script>

<style lang="scss" scoped>
</style>